php pdo get database name

45

php pdo get database name -

$pdo->query('select database()')->fetchColumn();

Comments

Submit
0 Comments